package jess;

public class Bind implements Userfunction {

	@Override
	public String getName() {

		return "bind";
	}

	@Override
	public Value call(ValueVector vv, Context c) throws JessException {

		Value rv = vv.get(2).resolveValue(c);
		c.setVariable(vv.get(1).variableValue(c), rv);
		return rv;
	}

}
